<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css" integrity="sha256-mUZM63G8m73Mcidfrv5E+Y61y7a12O5mW4ezU3bxqW4=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"tallgy.gitee.io","root":"/","images":"/images","scheme":"Muse","darkmode":false,"version":"8.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/js/config.js"></script>
<meta name="description" content="router4 源码的学习​        在学习router的时候，发现了一个地方，就是beforeRouteEnter 里面添加了next参数，然后就发现了，如果不调用就会出现问题，但是如果不添加next参数就不会出这个问题，然后就准备看看源码，刚开始看的源码时vue2的，所以现在重看一个vue3的。 ​        rotuer.ts &#x2F; 852  12345678&#x2F;&#x2F; check in-">
<meta property="og:type" content="article">
<meta property="og:title" content="router4源码">
<meta property="og:url" content="http://tallgy.gitee.io/2022/02/11/router/%E6%BA%90%E7%A0%81/router4/router4%E6%BA%90%E7%A0%81/index.html">
<meta property="og:site_name" content="tallgy&#39;s blog">
<meta property="og:description" content="router4 源码的学习​        在学习router的时候，发现了一个地方，就是beforeRouteEnter 里面添加了next参数，然后就发现了，如果不调用就会出现问题，但是如果不添加next参数就不会出这个问题，然后就准备看看源码，刚开始看的源码时vue2的，所以现在重看一个vue3的。 ​        rotuer.ts &#x2F; 852  12345678&#x2F;&#x2F; check in-">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2022-02-11T11:49:25.000Z">
<meta property="article:modified_time" content="2023-06-25T08:57:29.323Z">
<meta property="article:author" content="tallgy">
<meta property="article:tag" content="router">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="http://tallgy.gitee.io/2022/02/11/router/%E6%BA%90%E7%A0%81/router4/router4%E6%BA%90%E7%A0%81/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"http://tallgy.gitee.io/2022/02/11/router/%E6%BA%90%E7%A0%81/router4/router4%E6%BA%90%E7%A0%81/","path":"2022/02/11/router/源码/router4/router4源码/","title":"router4源码"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>router4源码 | tallgy's blog</title>
  




  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">tallgy's blog</h1>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>







</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#router4-%E6%BA%90%E7%A0%81%E7%9A%84%E5%AD%A6%E4%B9%A0"><span class="nav-number">1.</span> <span class="nav-text">router4 源码的学习</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#router-ts-createRouter%E6%96%B9%E6%B3%95-355"><span class="nav-number">1.1.</span> <span class="nav-text">router&#x2F;ts    createRouter方法    355</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#navigate-%E6%96%B9%E6%B3%95-763"><span class="nav-number">1.1.1.</span> <span class="nav-text">navigate 方法 763</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#extractChangingRecords-%E6%96%B9%E6%B3%95%E3%80%82"><span class="nav-number">1.2.</span> <span class="nav-text">extractChangingRecords 方法。</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#navigationGuards-ts"><span class="nav-number">1.3.</span> <span class="nav-text">navigationGuards&#x2F;ts</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#extractComponentsGuards%E6%96%B9%E6%B3%95-230"><span class="nav-number">1.3.1.</span> <span class="nav-text">extractComponentsGuards方法 230</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#isRouteComponent-%E6%96%B9%E6%B3%95-357"><span class="nav-number">1.3.2.</span> <span class="nav-text">isRouteComponent 方法 357</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#guardToPromiseFn%E6%96%B9%E6%B3%95-110"><span class="nav-number">1.3.3.</span> <span class="nav-text">guardToPromiseFn方法 110</span></a></li></ol></li></ol></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">tallgy</p>
  <div class="site-description" itemprop="description">只是一个知识的搬运工</div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">107</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories/">
        <span class="site-state-item-count">32</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags/">
        <span class="site-state-item-count">74</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://tallgy.gitee.io/2022/02/11/router/%E6%BA%90%E7%A0%81/router4/router4%E6%BA%90%E7%A0%81/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="tallgy">
      <meta itemprop="description" content="只是一个知识的搬运工">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="tallgy's blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          router4源码
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2022-02-11 19:49:25" itemprop="dateCreated datePublished" datetime="2022-02-11T19:49:25+08:00">2022-02-11</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2023-06-25 16:57:29" itemprop="dateModified" datetime="2023-06-25T16:57:29+08:00">2023-06-25</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/router/" itemprop="url" rel="index"><span itemprop="name">router</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h1 id="router4-源码的学习"><a href="#router4-源码的学习" class="headerlink" title="router4 源码的学习"></a>router4 源码的学习</h1><p>​        在学习router的时候，发现了一个地方，就是<strong>beforeRouteEnter</strong> 里面添加了next参数，然后就发现了，如果不调用就会出现问题，但是如果不添加next参数就不会出这个问题，然后就准备看看源码，刚开始看的源码时vue2的，所以现在重看一个vue3的。</p>
<p>​        <strong>rotuer.ts / 852</strong> </p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">// check in-component beforeRouteEnter</span><br><span class="line">guards = extractComponentsGuards(</span><br><span class="line">  enteringRecords,</span><br><span class="line">  &#x27;beforeRouteEnter&#x27;,</span><br><span class="line">  to,</span><br><span class="line">  from</span><br><span class="line">)</span><br><span class="line">guards.push(canceledNavigationCheck)</span><br></pre></td></tr></table></figure>

<ul>
<li><p>大概就是调用方法。这里的 <strong>enteringRecords</strong> 参数是通过 769 line 返回值</p>
<ul>
<li><p>```<br>const [leavingRecords, updatingRecords, enteringRecords] =</p>
<pre><code>  extractChangingRecords(to, from)
</code></pre>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">*  **extractChangingRecords** 方法。1238 line。</span><br><span class="line"></span><br><span class="line">  * 记住是返回数组，然后数组是代表了会触发 leaving，enter，update 的记录。代码后面有分析，这里就不占空间了。</span><br><span class="line"></span><br><span class="line">*  **navigate** 方法， 763 line</span><br><span class="line"></span><br><span class="line">  * ```</span><br><span class="line">    大概就是，先获取到路由的记录</span><br><span class="line">    </span><br><span class="line">    const [leavingRecords, updatingRecords, enteringRecords] =</span><br><span class="line">          extractChangingRecords(to, from)</span><br></pre></td></tr></table></figure>

<ul>
<li>```<br>调用 beforeRouteLeave，注意，这里的leavingRecoreds 记录使用了 reverse 进行了逆序。所以触发会从下到上。同时 reverse会修改原数组。guards = extractComponentsGuards(<br>  leavingRecords.reverse(),<br>  ‘beforeRouteLeave’,<br>  to,<br>  from<br>)<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">* ```</span><br><span class="line">  循环 leaving 记录。</span><br><span class="line">  </span><br><span class="line">  </span><br><span class="line">  // leavingRecords is already reversed</span><br><span class="line">  for (const record of leavingRecords) &#123;</span><br><span class="line">    record.leaveGuards.forEach(guard =&gt; &#123;</span><br><span class="line">      guards.push(guardToPromiseFn(guard, to, from))</span><br><span class="line">    &#125;)</span><br><span class="line">  &#125;</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id="router-ts-createRouter方法-355"><a href="#router-ts-createRouter方法-355" class="headerlink" title="router/ts    createRouter方法    355"></a>router/ts    createRouter方法    355</h2><h3 id="navigate-方法-763"><a href="#navigate-方法-763" class="headerlink" title="navigate 方法 763"></a>navigate 方法 763</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">// 返回要触发对应声明周期的 路由的记录</span><br><span class="line">const [leavingRecords, updatingRecords, enteringRecords] =</span><br><span class="line">	extractChangingRecords(to, from)</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">// all components here have been resolved once because we are leaving</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">guards = extractComponentsGuards(</span><br><span class="line">  leavingRecords.reverse(),</span><br><span class="line">  &#x27;beforeRouteLeave&#x27;,</span><br><span class="line">  to,</span><br><span class="line">  from</span><br><span class="line">)</span><br></pre></td></tr></table></figure>



<h2 id="extractChangingRecords-方法。"><a href="#extractChangingRecords-方法。" class="headerlink" title="extractChangingRecords 方法。"></a><strong>extractChangingRecords</strong> 方法。</h2><ul>
<li>```<br>const enteringRecords: RouteRecordNormalized[] = [] 代表定义的是一个数组。类型是 RouteRecordNormalized <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">* ```</span><br><span class="line">  function extractChangingRecords(</span><br><span class="line">    to: RouteLocationNormalized,</span><br><span class="line">    from: RouteLocationNormalizedLoaded</span><br><span class="line">  ) &#123;</span><br><span class="line">    // 数组类型</span><br><span class="line">    const leavingRecords: RouteRecordNormalized[] = []</span><br><span class="line">    const updatingRecords: RouteRecordNormalized[] = []</span><br><span class="line">    const enteringRecords: RouteRecordNormalized[] = []</span><br><span class="line">  </span><br><span class="line">    // matched 代表的是匹配上的路由部分。</span><br><span class="line">    //这里就是寻找len要比较长的一个。</span><br><span class="line">    const len = Math.max(from.matched.length, to.matched.length)</span><br><span class="line">    for (let i = 0; i &lt; len; i++) &#123;</span><br><span class="line">      // 这里就是 recordFrom 就让他等于 from 的匹配路由</span><br><span class="line">      const recordFrom = from.matched[i]</span><br><span class="line">      //如果路由存在，那么就会</span><br><span class="line">      // 从 to 里面匹配上的路由 进行find方法。轮询查看是否有满足的。</span><br><span class="line">      // isSameRouteRecord 方法就是 判断两个路由是不是一个。这里使用了 aliasOf 定义此记录是否是另一个记录的别名。如果该记录是原始记录，则此属性为 undefined。</span><br><span class="line">      if (recordFrom) &#123;</span><br><span class="line">        // 如果轮询找到了，那么就会把这个 from 的匹配路由push为 update的记录。</span><br><span class="line">        // 如果找不到，说明没有，那么就会 push 一个 leaving记录。</span><br><span class="line">        if (to.matched.find(record =&gt; isSameRouteRecord(record, recordFrom)))</span><br><span class="line">          updatingRecords.push(recordFrom)</span><br><span class="line">        else leavingRecords.push(recordFrom)</span><br><span class="line">      &#125;</span><br><span class="line">      // 记录此时的 to 的匹配路由</span><br><span class="line">      const recordTo = to.matched[i]</span><br><span class="line">      // 如果存在</span><br><span class="line">      if (recordTo) &#123;</span><br><span class="line">        // the type doesn&#x27;t matter because we are comparing per reference</span><br><span class="line">        // 判断原路由是否存在，不存在则会push为 enter 记录</span><br><span class="line">        if (!from.matched.find(record =&gt; isSameRouteRecord(record, recordTo))) &#123;</span><br><span class="line">          enteringRecords.push(recordTo)</span><br><span class="line">        &#125;</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;</span><br><span class="line">  </span><br><span class="line">    // 最后返回所有的记录</span><br><span class="line">    return [leavingRecords, updatingRecords, enteringRecords]</span><br><span class="line">  &#125;</span><br></pre></td></tr></table></figure></li>
</ul>
<h2 id="navigationGuards-ts"><a href="#navigationGuards-ts" class="headerlink" title="navigationGuards/ts"></a>navigationGuards/ts</h2><h3 id="extractComponentsGuards方法-230"><a href="#extractComponentsGuards方法-230" class="headerlink" title="extractComponentsGuards方法 230"></a>extractComponentsGuards方法 230</h3><h3 id="isRouteComponent-方法-357"><a href="#isRouteComponent-方法-357" class="headerlink" title="isRouteComponent 方法 357"></a>isRouteComponent 方法 357</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">/**</span><br><span class="line"> * Allows differentiating lazy components from functional components and vue-class-component</span><br><span class="line"> * 允许区分惰性组件与功能组件和vue类组件</span><br><span class="line"> *</span><br><span class="line"> * @param component</span><br><span class="line"> */</span><br><span class="line">function isRouteComponent(</span><br><span class="line">  component: RawRouteComponent</span><br><span class="line">): component is RouteComponent &#123;</span><br><span class="line">  // 组件要为对象，且存在 displayName，props，__vccOpts属性</span><br><span class="line">  return (</span><br><span class="line">    typeof component === &#x27;object&#x27; ||</span><br><span class="line">    &#x27;displayName&#x27; in component ||</span><br><span class="line">    &#x27;props&#x27; in component ||</span><br><span class="line">    &#x27;__vccOpts&#x27; in component</span><br><span class="line">  )</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>



<h3 id="guardToPromiseFn方法-110"><a href="#guardToPromiseFn方法-110" class="headerlink" title="guardToPromiseFn方法 110"></a>guardToPromiseFn方法 110</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"></span><br></pre></td></tr></table></figure>


    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/router/" rel="tag"># router</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2022/02/11/router/%E6%BA%90%E7%A0%81/router3%E6%BA%90%E7%A0%81/" rel="prev" title="router3源码初学">
                  <i class="fa fa-chevron-left"></i> router3源码初学
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2022/02/12/JavaScript/%E9%9A%8F%E7%AC%94/if%20in%20%E7%94%A8%E6%B3%95/" rel="next" title="if in 用法">
                  if in 用法 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">tallgy</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/muse/" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/schemes/muse.js"></script><script src="/js/next-boot.js"></script>

  





  





</body>
</html>
